package com.nat.network;

import com.instapp.nat.device.network.NetworkModule;
import com.instapp.nat.device.network.ModuleResultListener;

import com.taobao.weex.annotation.JSMethod;
import com.taobao.weex.bridge.JSCallback;
import com.taobao.weex.common.WXModule;
/**
 * Created by aj_wenlan on 2018/5/31.
 */

public class Network extends WXModule{

    @JSMethod
    public void status(final JSCallback jsCallback){
        NetworkModule.getInstance(mWXSDKInstance.getContext()).status(new ModuleResultListener() {
            @Override
            public void onResult(Object o) {
                jsCallback.invoke(o);
            }
        });
    }
}
